package com.qqtech.oss.aliyun;

import com.google.common.base.MoreObjects;

public class UploadResult {
	private boolean isUploadOk = false;
	private String etag;
	private String filePath;
	private long fileSize;

	public UploadResult() {
	}

	public UploadResult(boolean isUploadOk, String filePath, String etag) {
		this.isUploadOk = isUploadOk;
		this.etag = etag;
		this.filePath = filePath;
	}

	public boolean isUploadOk() {
		return isUploadOk;
	}

	public void setIsUploadOk(boolean isUploadOk) {
		this.isUploadOk = isUploadOk;
	}

	public String getEtag() {
		return etag;
	}

	public void setEtag(String etag) {
		this.etag = etag;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public long getFileSize() {
		return fileSize;
	}

	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}

	@Override
	public String toString() {
		return MoreObjects.toStringHelper(this).add("isUploadOk", isUploadOk).add("etag", etag)
				.add("filePath", filePath).add("fileSize", fileSize).toString();
	}
}
